package com.gs.zsmanage.dao;

import com.gs.zsmanage.entity.Department;
import com.gs.zsmanage.entity.Unit;
import com.gs.zsmanage.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserDepartmentMapper {

    void addUser(User user);

    void updateUser(User user);

    void deleteUser(Integer id);

    User queryUserByPhone(String phone);

    List<User> listUsersByDepartment(String department);

    List<User> searchUser(String param);

    List<User> listAllUsers();

    void addDepartment(Department department);

    void updateDepartment(Department department);

    void deleteDepartment(Integer id);

    void deleteDepartmentAndStationType(Integer id);

    List<Department> listAllDepartments();

    Unit queryUnitByNick(String nick);

    void addDepartmentAndStationType(@Param("department") String department, @Param("stationType") String stationType);
}
